package com.feihao.zhou.bean;

public class Employee {
    private String id;
    private String ename;
    private String gender;
    private Double salary;
    private String address;
    private String dept_id;

    private Dept dept;

    public Employee() {
    }

    public Employee(String id, String ename, String gender, Double salary, String address, String dept_id, Dept dept) {
        this.id = id;
        this.ename = ename;
        this.gender = gender;
        this.salary = salary;
        this.address = address;
        this.dept_id = dept_id;
        this.dept = dept;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getEname() {
        return ename;
    }

    public void setEname(String ename) {
        this.ename = ename;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public Double getSalary() {
        return salary;
    }

    public void setSalary(Double salary) {
        this.salary = salary;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getDept_id() {
        return dept_id;
    }

    public void setDept_id(String dept_id) {
        this.dept_id = dept_id;
    }

    public Dept getDept() {
        return dept;
    }

    public void setDept(Dept dept) {
        this.dept = dept;
    }

    @Override
    public String toString() {
        return "Employee{" +
                "id='" + id + '\'' +
                ", ename='" + ename + '\'' +
                ", gender='" + gender + '\'' +
                ", salary=" + salary +
                ", address='" + address + '\'' +
                ", dept_id='" + dept_id + '\'' +
                ", dept=" + dept +
                '}';
    }
}
